#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <math.h>

//int main()
//{
//	//float a = 1.0f;
//	//int b = 0;
//	//int c = 0;
//	////a += (b = 5) * (c = 3);
//	//a = 9 + b, c = a + 3;
//	//printf("%d\n", (-5) % (-3));// -2
//	//printf("%d\n", (5) % (-3));// 2
//	//printf("%d\n", (-5)%(3));// -2
//	//int _13 = 0;
//	//char str = '\055';
//	//printf("%lf\n", a);
//	unsigned char a = 33;
//	printf("%d %c\n", a, a);
//	int x = 0;
//	x = 3 + 5, x * 5;
//	printf("%d\n", x);
//	return 0;
//}


int main()
{
	double a = 0;
	double b = 0;
	double c = 0;
	scanf("%lf %lf %lf", &a, &b, &c);
	double p = -b / 2.0 * a;
	double q = sqrt(b * b - 4 * a * c) / 2.0 * a;
	double x1 = p + q;
	double x2 = p - q;
	printf("x1=%7.2f\nx2=%7.2f\n", x1, x2);


	return 0;
}